package com.accelstack.cmp.repository;

import com.accelstack.cmp.entity.Disk;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 磁盘Repository
 */
@Repository
public interface DiskRepository extends JpaRepository<Disk, Long> {
    
    /**
     * 根据服务器ID查询磁盘列表
     */
    List<Disk> findByServerId(Long serverId);
}

